﻿using ShuiLing.Application.Abstractions.Messaging;
using ShuiLing.Domain.Shared;

namespace ShuiLing.Application.Test;

internal class TestCommandHandel : ICommandHandler<TestCommand, User>
{
    public async Task<Result<User>> Handle(TestCommand request, CancellationToken cancellationToken)
    {
        Console.WriteLine("成功");
        await Task.CompletedTask;

        var res = Result.Create(new User() { Name = "List" });

        return res;
    }
}

public class User
{
    public string Name { get; set; }
}
